package com.xyht.medicine_management_system.modules.consumptionPoint.entity.req;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 消费积分记录表
 * </p>
 *
 * @author XYHT
 * @since 2023-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_consumption_point_record")
@ApiModel(value="MmsConsumptionPointRecord对象", description="消费积分记录表")
public class MmsConsumptionPointRecordReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "积分id")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "订单id")
    private String orderId;

    @ApiModelProperty(value = "消费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "积分")
    private Integer points;

    @ApiModelProperty(value = "用户当前总积分数量")
    private Integer totalPoints;

    @ApiModelProperty(value = "积分状态(0:减少 1:增加)")
    private Integer status;

    @ApiModelProperty(value = "积分类型，用于区分不同类型的积分（购买商品、活动获得等）")
    private Integer type;

    @ApiModelProperty(value = "消费药品信息")
    private String medicineInfo;

    @ApiModelProperty(value = "支付方式，记录用户支付的方式信息（支付宝、微信支付、银行卡等）")
    private String paymentMethod;

}
